package mypack.hunmoshi;

public class MoshiTest {

	public static void main(String [] args){
		MoshiTest   moshiTest = new MoshiTest();
		moshiTest.quck();
	}
	void quck(){
		Quackable ducka = new QuckCounter(new DuckA());
		Quackable duckb = new QuckCounter(new DuckB());
		Quackable duckc = new QuckCounter(new DuckC());
		Quackable goose = new QuckCounter(new  GooseToDuckAnapt(new Goose()));
        quck(ducka);
        quck(duckb);
        quck(duckc);
        quck(goose);
        System.out.println("The total number of quck is " +  QuckCounter.getCount());
	}
	
	void quck(Quackable quckable){
		
		quckable.quack();
		
		
	}
	
	
	
	
}
